<?php
/*

*/

namespace Home\Model;
use Think\Model;
class ExtendModel extends Model{




  public function findData($id){
    $data = $this->where(array('doc_id'=>$id))->find();
    if($data){
      return $data;
    }
    else{
      return false;
    }
  }

  public function sumAccount($where){
    $data = $this ->where($where)->find();
    if($data){
      return $data['account_amount'];
    }
  }

  public function sumMoney($where){
    $data = $this -> where($where)-> find();
    if($data){
      return $data['business_amount'];
    }
  }

















}
